package com.consumer.client.fallback;

import org.springframework.stereotype.Component;

import com.consumer.client.UserClient;
import com.consumer.pojo.User;

/**
 * Feign服务降级类
 * 
 * @author gzp
 *
 */
@Component
public class UserClientFallback implements UserClient {

	@Override
	public User getById(String id) {
		User user = new User();
		user.setId(id);
		user.setName("用户异常");
		user.setUsername("error");
		return user;
	}

}
